package cn.gdut.chengcai.base;

import org.apache.commons.beanutils.BeanUtils;

import cn.gdut.chengcai.entity.CountInfo;
import cn.gdut.chengcai.vo.CountInfoVo;

public class CountUtil {

	public static void fillVo(CountInfo entity, CountInfoVo vo) throws Exception {
		if (null != entity) {
			BeanUtils.copyProperties(vo, entity);
			if ((entity.getIsDeleted() == true) && (null != entity.getIsDeleted())) {
				vo.setIsDeleted("是");
			} else {
				vo.setIsDeleted("否");
			}
			
		}
	}
}
